package com.vict.framework.pay.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.vict.framework.fastjsonserializer.EnumDeserializer;
import com.vict.framework.fastjsonserializer.EnumSerializer;
import com.vict.framework.fastjsonserializer.TimestampDeserializer;
import com.vict.framework.fastjsonserializer.TimestampSerializer;
import com.vict.framework.pay.entity.PayOrder;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

@Data
public class PayTaskDTO {

    private String payDtoId;

    @JSONField(serializeUsing = EnumSerializer.class, deserializeUsing = EnumDeserializer.class)
    private PayOrder.PayType payType;

    @ApiModelProperty(value="支付成功时间")
    @JSONField(serializeUsing = TimestampSerializer.class, deserializeUsing = TimestampDeserializer.class)
    private Timestamp successTime;
}
